Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing group proposal #1689

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

ydaveluy
Copy link
Contributor

This PR fix #1677.

Add an additional test case and implement the fix.

Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking a look at this @ydaveluy. I can verify that the fix works, but I'll need a bit more time to investigate whether it breaks anything - adding elements to the set was supposed to break infinite loops in the completion calculation, but I'm not able to reproduce those anymore.

@msujew msujew force-pushed the fix-missing-group-proposal branch from 5278ce4 to 727c480 Compare December 4, 2024 15:43
@msujew msujew force-pushed the fix-missing-group-proposal branch from 727c480 to 8c55dd0 Compare December 4, 2024 15:44
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ydaveluy Sorry for the long review time. I wasn't entirely sure whether completely removing the branch will lead to stack overflows. Instead I changed the behavior a bit to only add the element to the set in case it is not a Group. This seems to pass the newly added test as well.

This looks good to me. Thanks for looking into it!

@msujew msujew added the completion Completion related issue label Dec 4, 2024
@msujew msujew merged commit 4e96814 into eclipse-langium:main Dec 4, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completion Completion related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal missing from the content assist
2 participants